<script setup>
// 引入echarts的所有组件
import echarts from '../util/echarts.js'
import {onMounted} from "vue";

function initA(){
  var chartA=echarts.init(document.getElementById('boxa'));
  var optionA = {
    title: {
      text: 'ECharts 入门示例'
    },
    tooltip: {},
    legend: {
      data: ['销量']
    },
    xAxis: {
      data: ['衬衫', '羊毛衫', '雪纺衫', '裤子', '高跟鞋', '袜子']
    },
    yAxis: {},
    series: [
      {
        name: '销量',
        type: 'bar',
        data: [5, 20, 36, 10, 10, 20]
      }
    ]
  };
  chartA.setOption(optionA);
}
onMounted(function (){
  initA();
});
</script>

<template>
  <div class="container">

    <el-row >
      <el-col :span="6">
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 325px" id="boxa">
              1
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 200px">
              2
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 225px">
              3
            </div>
          </el-col>
        </el-row>
      </el-col>

      <el-col :span="12">
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 150px">
              4
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 400px">
              5
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 200px">
              6
            </div>
          </el-col>
        </el-row>
      </el-col>

      <el-col :span="6">
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 250px">
              7
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 250px">
              8
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <div style="width: 100%; height: 250px">
              9
            </div>
          </el-col>
        </el-row>
      </el-col>

    </el-row>
  </div>
</template>

<style scoped>
.container{
  /* background-image: radial-gradient(50% 50% at 50% 70%, #545C64, #1A232A); */
  /* border: 1px solid #01093D; */
  min-height: 100%;
  background-color: #F5F5F5;

}
.container>.el-row{
  /* background-color: #FFF; */
  padding: 15px;
}
.title{
  text-align: center;
  color: #1A232A;
  /* font-weight: bold; */
  font-size: 36px;
  /* background-color: #091440; */
}
.el-col .el-col{
  background-color: #FFF;
  /* border: 1px solid #58A6FE; */
  border-radius: 5px;
}
.el-row .el-row {
  margin-bottom: 15px;
  margin-right: 15px;
}

</style>